package mm.chenchen.modules.sys.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import mm.chenchen.modules.sys.entity.FastStartSeq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import mm.chenchen.modules.sys.dao.model.request.FastStartSeqQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Select;

/**
 * @author
 * @email
 * @date 2021-07-02 16:49:50
 */
@Mapper
public interface FastStartSeqDao extends BaseMapper<FastStartSeq> {
    IPage<FastStartSeq> findPage(@Param("page") Page<Map> page, @Param("param") FastStartSeqQuery param);

    @Select("SELECT nextval('${seqName}')")
    Integer nextVal(@Param("seqName") String seqName);
}
